<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2021/9/2
 * Time: 15:33
 */
namespace app\common\model;
use think\Model;
use think\Db;

class Wechat extends Model
{
    //微信小程序
    public function mini_config($header=''){

        $config = [
            'app_id' => 'wx35e29296a86ce659',
            'app_secret' => '94c943f235eafdc48c0b06d55a704648',
            'map_key' => 'SMRBZ-MQBKO-PR5WE-SVCFC-SBJBQ-TNFMQ',
            'uniacid' => 2,
            'wxkey' => 'Chengmeitikejiyouxiangongsi52152',
            'mchid' => "1549569391"
        ];

        $config['title'] = "铖势江湖";
        return $config;
    }

    //随机订单号
    public function order_sn(){
        return date('YmdHis') . str_pad(mt_rand(1, 99999), 5, '0', STR_PAD_LEFT);
    }

    

}